package com.example.testscalaandroid2.act

import org.scaloid.common.SActivity
import org.scaloid.common.SVerticalLayout
import org.scaloid.common.STextView
import org.scaloid.common.SEditText
import org.scaloid.common.SRelativeLayout
import org.scaloid.common.SButton

class App4 extends SActivity {
  onCreate {
    contentView = new SVerticalLayout {
     // <<.fill
      STextView("name")
      SEditText()
      this += new SRelativeLayout {
        val btnCancle = SButton("cancle").<<.wrap.alignParentRight.>>
        SButton("ok").<<.leftOf(btnCancle).alignTop(btnCancle)//.wrap
      }
    }
  }
}



